From: Florian Müllner Date: Fri, 17 May 2013 18:14:26 +0000 (+0200) Subject: recorder: Use workarea to position the recording icon X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4161 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=248a0c1b6c06e670552366c44b7de83bd164e168;p=gnome-shell.git recorder: Use workarea to position the recording icon It looks a bit unpolished to overlap our own chrome with the recording icon, which may happen when an existing adds UI at the bottom edge. Fix this by using the primary monitor's workarea for the position rather than the entire monitor. https://bugzilla.gnome.org/show_bug.cgi?id=700409 --- diff --git a/src/shell-recorder.c b/src/shell-recorder.c index aa8b477c1..8d84a7ac1 100644 --- a/src/shell-recorder.c +++ b/src/shell-recorder.c @@ -477,7 +477,7 @@ recorder_draw_buffer_meter (ShellRecorder *recorder) GdkRectangle primary_monitor; float rects[16]; - gdk_screen_get_monitor_geometry (recorder->gdk_screen, + gdk_screen_get_monitor_workarea (recorder->gdk_screen, gdk_screen_get_primary_monitor (recorder->gdk_screen), &primary_monitor); @@ -602,7 +602,7 @@ recorder_on_stage_paint (ClutterActor *actor, { GdkRectangle primary_monitor; - gdk_screen_get_monitor_geometry (recorder->gdk_screen, + gdk_screen_get_monitor_workarea (recorder->gdk_screen, gdk_screen_get_primary_monitor (recorder->gdk_screen), &primary_monitor); if (!recorder->only_paint)